package com.zhou.framework.pool;


public abstract class VoidJob extends Job implements Runnable{
    public VoidJob(){
    }

    public VoidJob(String name) {
        setName(name);
    }



    public abstract Object execute() throws Exception;

    @Override
    public void run() {
        try {
            execute();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
